<!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>南京大学职业咨询室预约平台</title>
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <!-- No Baidu Siteapp-->
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='assets/i/ico_128X128.ico') }}">
    <!-- Add to homescreen for Chrome on Android -->
    <meta name="mobile-web-app-capable" content="yes">
    <link rel="icon" sizes="192x192" href="{{ url_for('static', filename='assets/i/app-icon72x72@2x.png') }}">
    <!-- Add to homescreen for Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />

    <link rel="apple-touch-icon-precomposed" href="{{ url_for('static', filename='assets/i/app-icon72x72@2x.png') }}">
    <!-- Tile icon for Win8 (144x144 + tile color) -->
    <meta name="msapplication-TileImage" content="{{ url_for('static', filename='assets/i/app-icon72x72@2x.png') }}">
    <meta name="msapplication-TileColor" content="#0e90d2">
    <link rel="stylesheet" href="{{ url_for('static', filename='assets/css/amazeui.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='assets/css/app.css', v='1.4') }}">
    <script src="{{ url_for('static', filename='assets/js/jquery.min.js') }}"></script>
    <style>    
    .main {
        text-align: center;
    }
    
    #contact,
    #password {
        height: 35px;
        width: 180px;
        border: none;
    }
    
    .item {
        color: blue;
        background-color: #E93EFF;
        height: 30px;
        width: 50px;
    }

    .hismsg {
        text-align: center;
        color: gray;
        margin: 0;
        padding: 0;
        height: 5px;
    }

    </style>
</head>

<body>
<div class="admin-header">
    <!--<div class="header-back" onclick="history.back()">返回</div>-->
    <div class="header-title">教师管理台</div>
</div>
<div class="admin-content">
    <div class="alert alert-warning">
        {% with messages = get_flashed_messages() %}
          {% if messages %}
            <ul class=flashes>
            {% for message in messages %}
            <div class="am-alert am-alert-secondary" data-am-alert>
              <button type="button" class="am-close">&times;</button>
              <div style="text-align: center;">{{ message }}</div>
            </div>
            {% endfor %}
            </ul>
          {% endif %}
        {% endwith %}
    </div>
    <div class="Name" id="curtch" tcid="{{tcid}}">
        <njup>你好，{{ name }} 老师</njup>
    </div>
    <br>
    <br>
    <div>
        
        <form class="am-form am-form-inline" role="form" name="njusub" method="post">
            {{ form.csrf_token }}

            <div class="am-cf">
                <button type="submit" id="id_query_cancel" value="我的咨询" class="am-btn am-btn-primary" onclick="query_cancel()">我的咨询</button>
            </div>

            <br>
            <br>
            <div class="am-cf">
                <button type="submit" id="id_logout" value="退出登录" class="am-btn am-btn-danger" onclick="logout_teacher()">退出登录</button>
                <button type="text" id="id_to_index" value="返回首页" onclick="to_index()" class="am-btn am-btn-danger" >返回首页</button>
            </div>
        </form>

    </div>

</div>

    
    <script type="text/javascript">

    /*function requestObject(){
        if (window.XMLHttpRequest)
            return new XMLHttpRequest();
        else if (window.ActiveXObject)
            return new ActiveXObject("Msxml2.XMLHTTP");
        else
            throw new Error("Error happend!");
    }*/

    function query_cancel(){
        document.njusub.action="/get_teacher_query_cancel_page";
        document.njusub.submit();
    }

    function logout_teacher(){
        document.njusub.action="/logout";
        document.njusub.submit();
    }
    
    function to_index(){
        document.njusub.action="/index";
        document.njusub.submit();
    }

    </script>
</body>
</html>
